/*
 * TestGridVisometry.java
 *
 * Created on April 8, 2008, 4:18 PM
 */

package specto.integer2;

import scio.coordinate.Z2;
import sequor.control.PlusMinusBox;
import specto.integer2.ArcZ2D;
import specto.integer2.ArcGroupZ2D;

/**
 *
 * @author  ae3263
 */
public class TestZ2DVisometry extends javax.swing.JFrame {
    
    /** Creates new form TestGridVisometry */
    public TestZ2DVisometry() {
        initComponents();
        
        plotZ2D1.add(new VertexZ2D(new Z2(2,2),50.));
        
        plotZ2D1.add(new ArcZ2D(0,5,90,1,4,180));
        
        ArcGroupZ2D ag = new ArcGroupZ2D();
        ag.add(new ArcZ2D(3,3,150,5,1,70));
        plotZ2D1.add(ag);
        
        plotZ2D1.add(new PlusMinusBox(50,50,plotZ2D1.getVisometry().xBounds.getMaxModel()),3,3);
        plotZ2D1.add(new PlusMinusBox(50,50,plotZ2D1.getVisometry().xBounds.getMinModel()),3,7);
        plotZ2D1.add(new PlusMinusBox(50,50,plotZ2D1.getVisometry().yBounds.getMinModel()),3,1);
        plotZ2D1.add(new PlusMinusBox(50,50,plotZ2D1.getVisometry().yBounds.getMaxModel()),3,5);
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        plotZ2D1 = new specto.integer2.PlotZ2D();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        javax.swing.GroupLayout plotZ2D1Layout = new javax.swing.GroupLayout(plotZ2D1);
        plotZ2D1.setLayout(plotZ2D1Layout);
        plotZ2D1Layout.setHorizontalGroup(
            plotZ2D1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 400, Short.MAX_VALUE)
        );
        plotZ2D1Layout.setVerticalGroup(
            plotZ2D1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 300, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(plotZ2D1, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(plotZ2D1, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents
    
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new TestZ2DVisometry().setVisible(true);
            }
        });
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private specto.integer2.PlotZ2D plotZ2D1;
    // End of variables declaration//GEN-END:variables
    
}
